package com.da.javatest.demo.collection;

import java.util.Arrays;
import java.util.List;

import com.da.javatest.enums.CheckType;

/**
 * @author chenlida
 * @date 2018/12/19 16:47
 * @description
 */
public class ArraysTest {
    public static void main(String[] args) {
        int[] a = {1, 2, 3, 4, 5};
        List<int[]> as = Arrays.asList(a);
        System.out.println(as.size());

        Integer[] b = {1, 2, 3, 4, 5};
        List<Integer> bs = Arrays.asList(b);
        System.out.println(bs.size());

        String[] c = {"a", "b", "c"};
        List<String> cs = Arrays.asList(c);
        System.out.println(cs.size());

        StringBuilder sb = new StringBuilder();
        sb.insert(0, "/");
        sb.insert(0, "aa");
        sb.insert(0, "/");
        sb.insert(0, "bb");
        System.out.println(sb.toString().substring(0, sb.length() - 1));

        ///System.out.println(CheckType.NO.name());
    }
}
